<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>输入登录密码</title>
	</head>
	<body>
		<script>
			//正确密码如下
			var rightPwd="fanfan666999";
			var inputPwd=prompt("请您输入密码：");
			if(rightPwd==inputPwd){
				alert("登录成功！");
			}
			else{
				alert("登录失败！");
			}
		</script>
	</body>
</html>
